<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>物流用户管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		var validateForm;
		function doSubmit(){//回调函数，在编辑和保存动作时，供openDialog调用提交表单。
		  if(validateForm.form()){
			  $("#inputForm").submit();
			  return true;
		  }
	
		  return false;
		}
		$(document).ready(function() {
			validateForm = $("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
			
					laydate({
			            elem: '#registTime', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎，因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
			            event: 'focus' //响应事件。如果没有传入event，则按照默认的click
			        });
		});
	</script>
</head>
<body class="hideScroll">
		<form:form id="inputForm" modelAttribute="logisUser" action="${ctx}/logis/logisUser/save" method="post" class="form-horizontal">
		<form:hidden path="id"/>
		<sys:message content="${message}"/>	
		<table class="table table-bordered  table-condensed dataTables-example dataTable no-footer">
		   <tbody>
				<tr>

					<td class="width-15 active"><label class="pull-right">用户类型：</label></td>
					<td class="width-35">
						<form:select path="type" class="form-control">
							<form:options items="${fns:getDictList('logis_user_type')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
						</form:select>
					</td>

					<td class="width-15 active"><label class="pull-right">昵称：</label></td>
					<td class="width-35">
						<form:input path="nickName" htmlEscape="false"    class="form-control "/>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">真实姓名：</label></td>
					<td class="width-35">
						<form:input path="realName" htmlEscape="false"     class="form-control "/>
					</td>
					<td class="width-15 active"><label class="pull-right">手机号：</label></td>
					<td class="width-35">
						<form:input path="mobile" htmlEscape="false"    class="form-control "/>
					</td>
				</tr>
				<tr>
					<td class="width-15 active"><label class="pull-right">余额：</label></td>
					<td class="width-35">
						<form:input path="balance" htmlEscape="false"  readonly="true"  class="form-control "/>
					</td>
					<td class="width-15 active"><label class="pull-right">积分：</label></td>
					<td class="width-35">
						<form:input path="scoreTotal" htmlEscape="false"  readonly="true"  class="form-control "/>
					</td>

				</tr>
				<tr>

					<c:if test="${logisUser.type ne '3'}">
						<td class="width-15 active"><label class="pull-right">叫车次数：</label></td>
						<td class="width-35">
							<form:input path="jiaocheNum" htmlEscape="false"   readonly="true"   class="form-control digits required" />
						</td>
					</c:if>
					<td class="width-15 active"><label class="pull-right">信用分：</label></td>
					<td class="width-35">
						<form:input path="creditTotal" htmlEscape="false"  readonly="true"  class="form-control "/>
					</td>
                    <c:if test="${logisUser.type eq '3'}">
					<td class="width-15 active"><label class="pull-right">设置合伙人佣金比例%：</label></td>
					<td class="width-35">
						<form:input path="commissionRate" htmlEscape="false"    class="form-control digits required" maxlength="2"/>
					</td>
					</c:if>
				</tr>
				<tr>


					<td class="width-15 active"><label class="pull-right">收货次数：</label></td>
					<td class="width-35">
						<form:input path="shouhuoNum" htmlEscape="false"  readonly="true"  class="form-control "/>
					</td>

					<td class="width-15 active"><label class="pull-right">好友数：</label></td>
					<td class="width-35">
						<form:input path="friendNum" htmlEscape="false"  readonly="true"  class="form-control "/>
					</td>
				</tr>
				<tr>


					<td class="width-15 active"><label class="pull-right">接单次数：</label></td>
					<td class="width-35">
						<form:input path="jiedanNum" htmlEscape="false"  readonly="true"  class="form-control "/>
					</td>
					<td class="width-15 active"><label class="pull-right">上级昵称：</label></td>
					<td class="width-35">
						<form:input path="parentName" htmlEscape="false"  readonly="true"  class="form-control "/>
					</td>
				</tr>
		 	</tbody>
		</table>
	</form:form>
</body>
</html>